<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Backoffice Manager</title>
<link href="/backend/assets/css/style.css" rel="stylesheet" type="text/css" />
<link href="/backend/assets/css/discount.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/backend/scripts/jquery.min.js"></script>
<script type="text/javascript" src="/backend/scripts/jquery-ui.custom.min.js"></script>
<script type="text/javascript" src="/backend/scripts/jquery.validate.min.js"></script>
<script type="text/javascript" src="/backend/scripts/common.js"></script>
<script type="text/javascript">
$(function(){
	$('.container form input.deactivex').click(function() {
		if (!confirm('Dectivate?')) return false;

		$.post('deactive', $('.container form').serialize(), function() {
			location.reload();
		});

		return false;
	});
	
	$('.container form input.activex').click(function() {
		if (!confirm('Activate?')) return false;

		$.post('active', $('.container form').serialize(), function() {
			location.reload();
		});

		return false;
	});
	
	$('.container form input.deletedx').click(function() {
		if (!confirm('Delete?')) return false;

		$.post('delete', $('.container form').serialize(), function() {
			location.reload();
		});

		return false;
	});	   
});
</script>
</head>
<body>
<div class="header">
  <h1>$header_title</h1>
</div>
<div class="c-repeat">
  <div class="c-b">
    <div class="container"> 
      <!--$header_html-->
      <div class="tools">
        <span>
		$discount_title
		<p>$discount_remark</p>
	</span>
        <a href="add_$dtype_id"><img src="/backend/assets/images/icon/add.png" />Item</a>
      </div>
      <div class="main">
        <form action="" method="post">
          <table class="content">
            <thead>
              <tr>
                <td width="20"><input name="check" type="checkbox" value="" class="checkall" /></td>
                <td>Brand</td>
                <td>Detail</td>
                <!--<td>Product</td>-->
                <!--<td>Color</td>-->
                <!--<td>Size</td>-->
                <!--<td>Season</td>-->
                 <td width="70">1 ชิ้น ลด</td>
                 <td width="70">2 ชิ้น ลด</td>
                 <td width="70">3 ชิ้น ลด</td>
                 <td width="70">Start</td>
                 <td width="70">Finish</td>
                 <td width="60">Status</td>
              </tr>
            </thead>
            <tbody>
              <!--SiXhEaD:result-->
              <tr>
                <td><input type="checkbox" name="content_id[]" value="$content_id" /></td>
                <td><a href="#">$brand</a></td>
                <td><a href="#">$detail</a></td>
                <!--<td><a href="#">$product</a></td>-->
                <!--<td><a href="#">$color</a></td>-->
                <!--<td><a href="#">$size</a></td>-->
                <!--<td><a href="#">$season</a></td>-->
                <td><a href="#">$value_1 %</a></td>
                <td><a href="#">$value_2 %</a></td>
                <td><a href="#">$value_3 %</a></td>
                <td><a href="#">$date_start</a></td>
                <td><a href="#">$date_finish</a></td>
                <td> $status </td>
              </tr>
              <!--/SiXhEaD:result-->
            </tbody>
          </table>
          <div class="action-select">
            <p>with selected:
              <input name="activate" type="submit" class="activex" value="Activate" />
              <input name="deactivate" type="submit" class="deactivex" value="Deactivate" />
              <input name="deleted" type="submit" class="deletedx" value="Delete" />
            </p>
          </div>
          <div class="page"> $strPage </div>
        </form>
      </div>
      <br class="clear" />
    </div>
  </div>
</div>
<!--$footer_html-->
</body>
</html>
